<template>
	<view>
		<view class="list" @click="go('loveyan')">
			<image src="../../static/loveyan.png" mode="widthFix"></image>
		</view>
		
		
		<view style="margin: 30rpx 20rpx;">
			<!-- #ifdef MP-QQ -->
			<ad :unit-id="cardAd" type="card"></ad>
			<!-- #endif -->
			<!-- #ifdef MP-WEIXIN -->
			<ad unit-id="adunit-01c696893c73c4ed"></ad>
			<!-- #endif -->
		</view>
		
		
	</view>
</template>

<script>
import API from "../../api.js";
	export default {
		data() {
			return {
				cardAd:"",
				bannerAd:""

			}
		},
		onLoad() {
			 this.cardAd = API.ad.cardAd;
			 this.bannerAd = API.ad.bannerAd;
		},
		methods: {
			go: function(e) {
				uni.navigateTo({
					url: "/pages/list/" + e + '/' + e
				})
			},


		}
	}
</script>

<style lang="less">
	.list {
		width: 730rpx;
		margin: 0 10rpx 20rpx 10rpx;
		background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);
		border-radius: 50rpx;

		image {
			width: 730rpx;
			border-radius: 50rpx;
		}
	}
</style>
